from dataclasses import dataclass
from fastapi import APIRouter
from typing import List, Callable, Any, Optional


@dataclass
class RouterMeta:
    """路由元数据配置类"""
    router: APIRouter
    prefix: str
    tags: List[str]
    dependencies: Optional[List[Callable[..., Any]]] = None

    def __post_init__(self):
        if self.dependencies is None:
            self.dependencies = []